
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TeBiz_GoodsCommentManager : BaseManager
    {
        #region private field

        private static TeBiz_GoodsCommentManager manager;
        #endregion

        #region Properties
        
        public Int32 GCommentID
        {
            get { return GetConfig<Int32>("GCommentID"); }
            set { SetConfig<Int32>("GCommentID", value); }
        }
        
        public String GoodsID
        {
            get { return GetConfig<String>("GoodsID"); }
            set { SetConfig<String>("GoodsID", value); }
        }
        
        public String Commentator
        {
            get { return GetConfig<String>("Commentator"); }
            set { SetConfig<String>("Commentator", value); }
        }
        
        public String Comments
        {
            get { return GetConfig<String>("Comments"); }
            set { SetConfig<String>("Comments", value); }
        }
        
        public DateTime? CommentDate
        {
            get { return GetConfig<DateTime?>("CommentDate"); }
            set { SetConfig<DateTime?>("CommentDate", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TeBiz_GoodsCommentManager
        /// </summary>
        private TeBiz_GoodsCommentManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TEBIZ_GOODSCOMMENT_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TEBIZ_GOODSCOMMENT_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TeBiz_GoodsCommentManager Instance

        /// <summary>
        /// TeBiz_GoodsCommentManager's Instance
        /// </summary>
        public static TeBiz_GoodsCommentManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TeBiz_GoodsCommentManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
